import type { IsInternalInterfaceEnum } from "@/enums/formEnum";
import type { FormSchema } from "./form";

export type ComponentType =
  | 'Divider'
  | 'Input'
  | 'InputPhone'
  | 'InputNumber'
  | 'NumberBox'
  | 'InputTextArea'
  | 'InputPassword'
  | 'Select'
  | 'UploadImg'
  | 'UploadFile'
  | 'UploadVideo'
  | 'RadioGroup'
  | 'CheckboxGroup'
  | 'Switch'
  | 'TimePicker'
  | 'DatePicker'
  | 'DateTimePicker'
  | 'YearPicker'
  | 'MonthPicker'
  | 'ChooseLocation'
  | 'AreaPicker'
  | 'AreaStreetPicker'
  | 'Honor'
  | 'InputSearch'
  | 'TianyanchaScore'
  | 'PolicyService'
  | 'Nickname'
  | 'ApplyTable'
  | 'Attachment'
  | 'SelectIndustry'

export type Localdata = {
  value: number | string;
  text: string;
  [x: string]: any
};

/** change 回调的参数 */
export type OnchangeArgument = {
  field: FormSchema['field']
  component: ComponentType
  isInternalInterface?: IsInternalInterfaceEnum
  dataType?: FormSchema['dataType']
  val?: any
}
